<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>凭证字新增</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/css/public.css">
		<script language="JavaScript"
			src="<%=request.getContextPath()%>/js/public.js"></script>
		<script language="JavaScript"
			src="<%=request.getContextPath()%>/js/validate.js"></script>
		<script type="text/javascript">
		function validate()
		{	
			var name = document.getElementById("name");
			
			//验证凭证字名称代码
			if(!isNotNull(name,'凭证字名称')||!f_check_ZhOrNumOrLett(name,'凭证字名称')||!f_check_passwordLength(name,'凭证字名称',1,12))
				return false ;	
		}
		</script>

	</head>

	<body>
		<div id="info_all" style="width: 306px;">
			<div id="info_top"> 
				凭证字新增 
			</div>
			<div
				style="padding: 2px; width: 280px; margin-top: 6px; font-size: 10pt;">
				<s:form action="addVoucher.action" name="delrow" theme="simple"
					onsubmit="return validate()" cssStyle="margin-top:0px;">
					<div style="margin-left: 30px; color: #403040;">
						<font style="font-size: 10pt;">凭证字：</font>
						<s:textfield name="voucherModel.voucherName" size="20" id="name"></s:textfield>
					</div>
					<div style="margin-top: 6px; margin-left: 15px; width: 270px;">
						<table
							style="margin-top: 10px; background: #fbfbfb; color: #403040;"
							align="center">
							<tr>
								<td>
									借方必有：
								</td>
								<td align="center">
									<s:hidden id="accountbookName"></s:hidden>
									<s:textfield name="voucherModel.debitY" id="accountbookName1" readonly="true"></s:textfield>
									<img src="images/kookup.gif" style="cursor:pointer"  onclick="multiSelect('accountbookName1','','selectMultiAccountbook.action','accountbook',750,700,0)">
									<%--<s:hidden id="accountbookId"></s:hidden>
									<s:textfield name="voucherModel.debitY" id="accountbookName"></s:textfield>
									<img src="images/kookup.gif" style="cursor:pointer"  onclick="openWin('accountbook!selectMulti.action','accountbook',750,700,0)">
								--%></td>
							</tr>
							<tr>
								<td>
									贷方必有：
								</td>
								<td>
									<s:textfield name="voucherModel.creditY" id="accountbookName2" readonly="true"></s:textfield>
									<img src="images/kookup.gif" style="cursor:pointer"  onclick="multiSelect('accountbookName2','','selectMultiAccountbook.action','accountbook',750,700,0)">
								</td>
							</tr>
							<tr>
								<td>
									借或贷必有：
								</td>
								<td>
									<s:textfield name="voucherModel.debitOrCreditY" id="accountbookName3" readonly="true"></s:textfield>
									<img src="images/kookup.gif" style="cursor:pointer"  onclick="multiSelect('accountbookName3','','selectMultiAccountbook.action','accountbook',750,700,0)">
								</td>
							</tr>
							<tr>
								<td>
									借方必无：
								</td>
								<td>
									<s:textfield name="voucherModel.debitN" id="accountbookName4" readonly="true"></s:textfield>
									<img src="images/kookup.gif" style="cursor:pointer"  onclick="multiSelect('accountbookName4','','selectMultiAccountbook.action','accountbook',750,700,0)">
								</td>
							</tr>
							<tr>
								<td>
									贷方必无：
								</td>
								<td>
									<s:textfield name="voucherModel.creditN" id="accountbookName5" readonly="true"></s:textfield>
									<img src="images/kookup.gif" style="cursor:pointer"  onclick="multiSelect('accountbookName5','','selectMultiAccountbook.action','accountbook',750,700,0)">
								</td>
							</tr>
							<tr>
								<td>
									借或贷必无：
								</td>
								<td>
									<s:textfield name="voucherModel.debitAndCreditN" id="accountbookName6" readonly="true"></s:textfield>
									<img src="images/kookup.gif" style="cursor:pointer"  onclick="multiSelect('accountbookName6','','selectMultiAccountbook.action','accountbook',750,700,0)">
								</td>
							</tr>
						</table>
					</div>
					<div style="margin: 6px; text-align: center;">
						<s:submit value="保存" onmouseover="this.className='btnover'"
							onfocus="this.blur()" onmouseout="this.className='btnout'"
							id="btnsize"></s:submit>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="button" value="返回" onclick="window.history.go(-1)"
							onfocus="this.blur()" onmouseout="this.className='btnout'"
							id="btnsize">
					</div>
				</s:form>
			</div>

		</div>
		<script type="text/javascript">
	 		getTitle('name','凭证字');	
		</script>
	</body>
</html>
